package test;

import java.io.File;

import org.junit.Ignore;
import org.junit.Test;

import com.assic.utils.clazz.DynamicCompiler;
import com.assic.utils.file.FileUtils;
import com.assic.utils.timer.Timer;

public class Main {

	@Test
	@Ignore
	public void testCouneLine() {
		Timer.start();
		System.out.println(FileUtils.countJAVACodeLines(new File("D:\\GIT_HOME\\iofdutils\\IOFDUtils")));
		Timer.end();
	}
	
	@Test
	public void testEval() throws InstantiationException, IllegalAccessException {
		System.out.println(DynamicCompiler.class.newInstance().eval("1 > 2"));
	}
	
	public static void main(String[] args) throws InstantiationException, IllegalAccessException {
		DynamicCompiler compiler = new DynamicCompiler();
		System.out.println(compiler.eval("3 % 2"));
	}
}
